/**
 * 功能描述 卡片
 */

define(function (require, exports, module) {
	var aw = require("ajaxwrapper")
	var Form = require("form");
	var Dialog = require("dialog");
	var store =require("store");
	var activeUser = store.get("user");	
	var enmu=require("enums");
	
    var instance = {
        initComponent: function (params,widget) {
        	var Vform=new Form({
       		 show:false,
        	 parentNode:"#visit",
	  			 model:{
	  			 	defaultButton:false,
					id:"visitRecords",
					layout: "3_1",
					items:[{
						name:"pkTravelContract",
						type:"hidden"
					},{
						name:"contactNo",
						label:"合同号",
						type:"text",
					},{
						name:"product",
						label:"产品",
						type:"text",
					},{
						name:"productType",
						label:"产品类型",
						type:"text",
					},{
						name:"number",
						label:"购买份数",
						type:"text",
					},{
						label:"金额(元)",
						name:"price",
 						type:"text",
					},{
						label : "会员证号",
						name : "memberCertificates",
						type:"text",
					},{
						label:"签约日期",
						name:"signUpDate",
						type:"date",
					},{
						label:"开始日期",
						name:"startDate",
						type:"date",
					},{
						label:"终止日期",
						name:"endDate",
						type:"date",
					},{
						label:"销售顾问",
						name:"operator",
						type:"text",
					},{
						name:"description",
						type:"textarea",
						label:"备注",
						"break":true
					}]
				 }
       	 });
       	 widget.set("Vform",Vform);
        }
    };
    module.exports = instance;
});
